home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIPluginDocument.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPluginDocument.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPluginDocument_h__
  6. #define __gen_nsIPluginDocument_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIStreamListener_h__
  14. #include "nsIStreamListener.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIPluginDocument */
  23. #define NS_IPLUGINDOCUMENT_IID_STR "0d8129f1-5a55-4eaa-851f-15e43ce3d183"
  24.  
  25. #define NS_IPLUGINDOCUMENT_IID \
  26.   {0x0d8129f1, 0x5a55, 0x4eaa, \
  27.     { 0x85, 0x1f, 0x15, 0xe4, 0x3c, 0xe3, 0xd1, 0x83 }}
  28.  
  29. class NS_NO_VTABLE nsIPluginDocument : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGINDOCUMENT_IID)
  33.  
  34.   /**
  35.   * Sets the stream listener for this plugin document 
  36.   */
  37.   /* void setStreamListener (in nsIStreamListener aStreamListener); */
  38.   NS_IMETHOD SetStreamListener(nsIStreamListener *aStreamListener) = 0;
  39.  
  40.   /**
  41.   * Causes the plugin to print in full-page mode
  42.   */
  43.   /* void print (); */
  44.   NS_IMETHOD Print(void) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIPLUGINDOCUMENT \
  50.   NS_IMETHOD SetStreamListener(nsIStreamListener *aStreamListener); \
  51.   NS_IMETHOD Print(void); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIPLUGINDOCUMENT(_to) \
  55.   NS_IMETHOD SetStreamListener(nsIStreamListener *aStreamListener) { return _to SetStreamListener(aStreamListener); } \
  56.   NS_IMETHOD Print(void) { return _to Print(); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIPLUGINDOCUMENT(_to) \
  60.   NS_IMETHOD SetStreamListener(nsIStreamListener *aStreamListener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStreamListener(aStreamListener); } \
  61.   NS_IMETHOD Print(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Print(); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsPluginDocument : public nsIPluginDocument
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIPLUGINDOCUMENT
  72.  
  73.   nsPluginDocument();
  74.  
  75. private:
  76.   ~nsPluginDocument();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsPluginDocument, nsIPluginDocument)
  84.  
  85. nsPluginDocument::nsPluginDocument()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsPluginDocument::~nsPluginDocument()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* void setStreamListener (in nsIStreamListener aStreamListener); */
  96. NS_IMETHODIMP nsPluginDocument::SetStreamListener(nsIStreamListener *aStreamListener)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* void print (); */
  102. NS_IMETHODIMP nsPluginDocument::Print()
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsIPluginDocument_h__ */
  112.